<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!-- 策略配置 -->
<form class="form-horizontal" role="form">
	<div id="sourceStrategyIncrementTitle" class="text-muted">&nbsp;&nbsp;增量配置</div><br />
	<!-- 是否启用 -->
	<div class="row hidden">
		<div class="col-md-4">
			<div class="form-group">
				<label class="col-sm-3 control-label">状态</label>
				<div class="col-sm-9">
					<div class="switch" id="driverStrategyIncrementEnable">
						<input type="checkbox" />
					</div>
				</div>
			</div>
		</div>
	</div>

	<!-- Mysql增量策略配置 -->
	<div id="sourceStrategyIncrementDatabaseMysql" class="hidden">
		<div class="row">
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-sm-3 control-label">IP&nbsp;<strong
						class="driverVerifcateRequired">*</strong></label>
					<div class="col-sm-9">
						<input id="sourceStrategyIncrementIp" type="text"
							class="form-control" asd-valid="require" value="127.0.0.1"
							placeholder="127.0.0.1">
					</div>
				</div>
			</div>
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-sm-3 control-label">端口&nbsp;<strong
						class="driverVerifcateRequired">*</strong></label>
					<div class="col-sm-9">
						<input id="sourceStrategyIncrementPort" type="text"
							class="form-control" asd-valid="require" value="11111"
							placeholder="11111">
					</div>
				</div>
			</div>
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-sm-3 control-label">instance&nbsp;<strong
						class="driverVerifcateRequired">*</strong></label>
					<div class="col-sm-9">
						<input id="sourceStrategyIncrementInstance" type="text"
							class="form-control" asd-valid="require" value="example"
							placeholder="example">
					</div>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-sm-3 control-label">库</label>
					<div class="col-sm-9">
						<input id="sourceStrategyIncrementDatabase" type="text"
							class="form-control" disabled="disabled">
					</div>
				</div>
			</div>
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-sm-3 control-label">表</label>
					<div class="col-sm-9">
						<input id="sourceStrategyIncrementTable" type="text"
							class="form-control" disabled="disabled">
					</div>
				</div>
			</div>
			<div class="col-md-4"></div>
		</div>
	</div>

	<!-- Oracle增量策略配置 -->
	<div id="sourceStrategyIncrementDatabaseOracle" class="hidden">
		<div class="row">
			<div class="col-md-4">
				<div class="row text-center"
					id="sourceStrategyIncrementScanAll">
					<div class="col-sm-6">
						<input type="radio" name="scanAll" value="flase" checked>
						运行日志
					</div>
					<div class="col-sm-6">
						<input type="radio" name="scanAll" value="true"> 所有日志
					</div>
				</div>
			</div>
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-sm-3 control-label">字典*</label>
					<div class="col-sm-9">
						<input id="sourceStrategyIncrementDictionaryPath" type="text"
							class="form-control" asd-valid="require"
							value="/oracle/logmnr/dictionary.ora"
							placeholder="/oracle/logmnr/dictionary.ora">
					</div>
				</div>
			</div>
			<div class="col-md-4"></div>
		</div>
	</div>

	<!-- ldap增量策略配置  -->
	<div id="sourceStrategyIncrementLdap" class="hidden">
		<div class="row">
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-sm-3 control-label">URL</label>
					<div class="col-sm-9">
						<input id="ldapStrategyIncrementUrl" type="text"
							class="form-control" disabled="disabled">
					</div>
				</div>
			</div>
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-sm-3 control-label">BASE</label>
					<div class="col-sm-9">
						<input id="ldapStrategyIncrementBase" type="text"
							class="form-control" disabled="disabled">
					</div>
				</div>
			</div>
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-sm-3 control-label">帐号</label>
					<div class="col-sm-9">
						<input id="ldapStrategyIncrementUserDn" type="text"
							class="form-control" disabled="disabled">
					</div>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-sm-3 control-label">同步范围</label>
					<div class="col-sm-9">
						<select class="form-control select-control" id="ldapStrategyIncrementSearchScope"
							name="searchScope">
							<option value="subtree">包含子级</option>
							<option value="onelevel">同级</option>
						</select>
					</div>
				</div>
			</div>
			<div class="col-md-8"></div>
		</div>
	</div>
</form>
<!-- 策略配置结束 -->

<script type="text/javascript">
	$.getScript($basePath + '/style/js/driver/driverEditSyncStrategy.js');
</script>